import request from '@/utils/request'

// 查询用户微信步数记录列表
export function listAppStep(query) {
  return request({
    url: '/applet/appStep/list',
    method: 'get',
    params: query
  })
}

// 查询用户微信步数记录详细
export function getAppStep(id) {
  return request({
    url: '/applet/appStep/' + id,
    method: 'get'
  })
}

// 新增用户微信步数记录
export function addAppStep(data) {
  return request({
    url: '/applet/appStep',
    method: 'post',
    data: data
  })
}

// 修改用户微信步数记录
export function updateAppStep(data) {
  return request({
    url: '/applet/appStep',
    method: 'put',
    data: data
  })
}

// 删除用户微信步数记录
export function delAppStep(id) {
  return request({
    url: '/applet/appStep/' + id,
    method: 'delete'
  })
}
